/**
 * Created by 惜帅 on 2018/10/27.
 * 订单相关api
 */
import * as API from './'

export default {

    //查询获取列表(通过page分页)
    qryByPage: params => {
        return API.GET('/order/qryByPage', params)
    },
    // 添加
    doAddOrUpdate: params => {
        return API.POST('/order/doAddOrUpdate', params)
    },
    // 删除
    doDel: params => {
        return API.DELETE('/order/doDel', params)
    },
    //获取
    qryOrderInfos: params => {
        return API.GET('/order/qryOrderInfos', params)
    },
    //根据文件名，匹配借款合同表里的文件名
    matchBankCertFile: params => {
        return API.GET('/order/matchBankCertFile', params)
    },
    //根据订单ID，获取订单金额、订单编号、借款合同数、账号余额等相关信息
    prePayOrderInfos: params => {
        return API.GET('/order/prePayOrderInfos', params)
    },
    getOrderDetails: params => {
      return API.GET('/order/getOrderDetails', params)
    },
    //支付订单
    payOrder: params => {
        return API.GET('/order/payOrder', params)
    },
    //取消订单
    doCancle: params => {
        return API.GET('/order/cancleOrder', params)
    },
    createHtml: params => {
        return API.GET('/lawyerDoc/createHtml', params)
    }

}
